#ifndef UART_COMMAND_H
#define UART_COMMAND_H

#define LED_NUM     8

#pragma pack(1)
typedef struct __LEDCommandTypedef
{
    unsigned char led_brightness;
    unsigned char color_tone;
    unsigned char reserved;
}LEDCommandTypedef;
#pragma pack()

#pragma pack(1)
typedef struct __CommandsTypedef
{
    unsigned char head;             //帧头
    LEDCommandTypedef LED[LED_NUM];
    unsigned char tail;             //帧尾
}CommandsTypedef;
#pragma pack()

int SendCommandToSTM32(CommandsTypedef *commands);

#endif